﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace CMN.Entity
{
      ///<summary>
    ///Normal_SearchContentEntity实体类(搜索记录)
    ///</summary>
    [Serializable]
    public partial class Normal_SearchContentEntity
    {
        #region "Private Variables"
        private DataTableAction _DataTable_Action;  // 操作方法 Insert:增加 Update:修改 Delete:删除
        private Int32 _Id=0; // 递增Id
        private String _SearchContent=""; // 搜索的内容
        private String _SearchType=""; // 搜索类型
        private Int32 _SearchNum = 0;
        private string _Url = "";
        #endregion

        #region "Public Variables"
        ///<summary>
        /// 操作方法 Insert:增加 Update:修改 Delete:删除
        ///</summary>
        public DataTableAction DataTable_Action
        {
            set { this._DataTable_Action = value; }
            get { return this._DataTable_Action; }
        }
        /// <summary>
        /// 递增Id
        /// </summary>
        public Int32  Id
        {
            set { this._Id = value; }
            get { return this._Id; }
        }
        /// <summary>
        /// 搜索的内容
        /// </summary>
        public String  SearchContent
        {
            set { this._SearchContent = value; }
            get { return this._SearchContent; }
        }
        /// <summary>
        /// 搜索类型
        /// </summary>
        public String  SearchType
        {
            set { this._SearchType = value; }
            get { return this._SearchType; }
        }
        /// <summary>
        /// 搜索次数
        /// </summary>
        public Int32 SearchNum
        {
            set { this._SearchNum = value; }
            get { return this._SearchNum; }
        }

        public string Url
        {
            get { return string.Concat("/search/", (SearchType == "" ? "" : string.Concat( SearchType, "/")), HttpUtility.UrlEncode(SearchContent)); }
        }
        #endregion
    }
}
